<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>第27题</title>
    <script>
        var a = 0;
        for (var b =1; b <= 10000 ; b++) {
            var c = "";
            for (var d = 1; d <= b ; d++) {
               if (b % d == 0) {
                   c ++ ;
               }
            }
            if (c == 2) {
                a += b + ""
            }
        }
        console.log(a + "是质数")
    </script>
</head>
<body>
    
</body>
</html>